timeout experience

timeout experience

am 30.03.2010 20:37:12 von mohitanchlia

Apache 2.2.11

I am reviewing the timeout values in worker.properties because
currently if one node out of so many other nodes in a jboss cluster
reboots or dies then we see that connection piles up on the web
server. It looks like it's because of retries and and prepost_timeout
that lot of requests hang. What I am looking for is correct settings
that will take worker out of service if node is not reachable and
pings every 7 seconds if node is up or not.

These are my current settings and I think this is what I need to do

change:

worker.host2533.type=ajp13
worker.host2533.port=8009
worker.host2533.host=host2533
worker.host2533.socket_timeout=5
worker.host2533.socket_keepalive=true
worker.host2533.prepost_timeout=5
worker.host2533.connect_timeout=5000
worker.host2533.retries=3
worker.host2533.recycle_timeout=900


to - basically remove retries so that it doesn't cause long hangs when
server is down.

worker.host2533.type=ajp13
worker.host2533.port=8009
worker.host2533.host=host2533
worker.host2533.socket_keepalive=true
worker.host2533.connect_timeout=5000
worker.host2533.recycle_timeout=900

I don't see a value in connector timeout manual that checks every 7
sec and leave worker out of service for 7 secs. Could you please let
me know if mod_jk timeout configuration support such a thing that I am
trying to do?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: timeout experience

am 30.03.2010 22:58:04 von mohitanchlia

I see this in mod_jk logs:

--
[Tue Mar 30 13:18:29.862 2010] [13058:4143291040] [error]
ajp_send_request::jk_ajp_common.c (1467): (host2532) connecting to
backend failed. Tomcat is probably not started or is listening on the
wrong port (errno=111)
--

And after this point our response time on the client side skyrocket.
And we keep getting hundreds of above error every second. Question is
why would the worker not taken out of service? My assumption is as
soon as it detects this worker is taken out of service.

worker.tc.type=lb
worker.tc.balance_workers=host2532,host2533
worker.tc.sticky_session=true


On Tue, Mar 30, 2010 at 11:37 AM, Mohit Anchlia wrote:
> Apache 2.2.11
>
> I am reviewing the timeout values in worker.properties because
> currently if one node out of so many other nodes in a jboss cluster
> reboots or dies then we see that connection piles up on the web
> server. It looks like it's because of retries and and prepost_timeout
> that lot of requests hang. What I am looking for is correct settings
> that will take worker out of service if node is not reachable and
> pings every 7 seconds if node is up or not.
>
> These are my current settings and I think this is what I need to do
>
> change:
>
> worker.host2533.type=ajp13
> worker.host2533.port=8009
> worker.host2533.host=host2533
> worker.host2533.socket_timeout=5
> worker.host2533.socket_keepalive=true
> worker.host2533.prepost_timeout=5
> worker.host2533.connect_timeout=5000
> worker.host2533.retries=3
> worker.host2533.recycle_timeout=900
>
>
> to - basically remove retries so that it doesn't cause long hangs when
> server is down.
>
> worker.host2533.type=ajp13
> worker.host2533.port=8009
> worker.host2533.host=host2533
> worker.host2533.socket_keepalive=true
> worker.host2533.connect_timeout=5000
> worker.host2533.recycle_timeout=900
>
> I don't see a value in connector timeout manual that checks every 7
> sec and leave worker out of service for 7 secs. Could you please let
> me know if mod_jk timeout configuration support such a thing that I am
> trying to do?
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: timeout experience

am 31.03.2010 01:58:15 von mohitanchlia

Adding below settings helped. But I am seeing weird behaviour here.
What I am seeing is that when server is not pingable (when I reboot or
shutdown) anymore mod_jk keeps logging errors 111 (connection refused)
and errors 115 continuously and during this timeperiod if I look at
"JkStatus" the State of the corresponding worker is still "OK" (which
is incorrect in this case since server is not pingable). During this
time period response times are still around 2-4 secs as compared to
300 ms. When everything is good our requests take 300 ms.

Now once the server comes up (pingable) the state of the worker is
"ERR" and at this point everything returns back to normal. So it looks
like until server is pingable mod_jk doesn't put that worker in "ERR"
state. So my question is what can I do in worker.properties such that
worker goes in ERR state automatically when server or the machine
completely goes down? It's kind of odd that mod_jk doesn't put the
worker in ERR state when the box that worker is tied to is not
pingable?


worker.template.socket_connect_timeout=5000
worker.template.connection_pool_minsize=0
worker.template.connection_pool_timeout=20
worker.template.recovery_options=7

On Tue, Mar 30, 2010 at 1:58 PM, Mohit Anchlia wrote:
> I see this in mod_jk logs:
>
> --
> [Tue Mar 30 13:18:29.862 2010] [13058:4143291040] [error]
> ajp_send_request::jk_ajp_common.c (1467): (host2532) connecting to
> backend failed. Tomcat is probably not started or is listening on the
> wrong port (errno=111)
> --
>
> And after this point our response time on the client side skyrocket.
> And we keep getting hundreds of above error every second. Question is
> why would the worker not taken out of service? My assumption is as
> soon as it detects this worker is taken out of service.
>
> worker.tc.type=lb
> worker.tc.balance_workers=host2532,host2533
> worker.tc.sticky_session=true
>
>
> On Tue, Mar 30, 2010 at 11:37 AM, Mohit Anchlia wrote:
>> Apache 2.2.11
>>
>> I am reviewing the timeout values in worker.properties because
>> currently if one node out of so many other nodes in a jboss cluster
>> reboots or dies then we see that connection piles up on the web
>> server. It looks like it's because of retries and and prepost_timeout
>> that lot of requests hang. What I am looking for is correct settings
>> that will take worker out of service if node is not reachable and
>> pings every 7 seconds if node is up or not.
>>
>> These are my current settings and I think this is what I need to do
>>
>> change:
>>
>> worker.host2533.type=ajp13
>> worker.host2533.port=8009
>> worker.host2533.host=host2533
>> worker.host2533.socket_timeout=5
>> worker.host2533.socket_keepalive=true
>> worker.host2533.prepost_timeout=5
>> worker.host2533.connect_timeout=5000
>> worker.host2533.retries=3
>> worker.host2533.recycle_timeout=900
>>
>>
>> to - basically remove retries so that it doesn't cause long hangs when
>> server is down.
>>
>> worker.host2533.type=ajp13
>> worker.host2533.port=8009
>> worker.host2533.host=host2533
>> worker.host2533.socket_keepalive=true
>> worker.host2533.connect_timeout=5000
>> worker.host2533.recycle_timeout=900
>>
>> I don't see a value in connector timeout manual that checks every 7
>> sec and leave worker out of service for 7 secs. Could you please let
>> me know if mod_jk timeout configuration support such a thing that I am
>> trying to do?
>>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

How to install Apache2 on Windows 7

am 31.03.2010 14:51:00 von Can Le

--0-1505410657-1270039860=:15484
Content-Type: text/plain; charset=us-ascii


Hi friends,

Please show me another link or instruction to install Apache 2. I downloaded this file but can't install onto Windows 7 Home edition:

httpd-2.0.63-win32-src.zip

I opened above link with winrar , but I couldn't extract files to C drive.

Thank you

Can Le







--0-1505410657-1270039860=:15484
Content-Type: text/html; charset=us-ascii


Hi friends,

Please show me another link or instruction to install Apache 2. I downloaded this file but can't install onto Windows 7 Home edition:



I opened above link with winrar , but I couldn't extract files to C drive.

Thank you

Can Le







--0-1505410657-1270039860=:15484--

Re: How to install Apache2 on Windows 7

am 31.03.2010 15:06:44 von Eric Covener

--00504502cc30089d2a0483186b15
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Mar 31, 2010 at 8:51 AM, Can Le wrote:

>
> Hi friends,
>
> Please show me another link or instruction to install Apache 2. I
> downloaded this file but can't install onto Windows 7 Home edition:
>
> httpd-2.0.63-win32-src.zip
>
> I opened above link with winrar , but I couldn't extract files to C drive.
>

Download the binaries, not the source code. And start with 2.2, not 2.0



--
Eric Covener
covener@gmail.com

--00504502cc30089d2a0483186b15
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


--
Eric Covener
ail.com">covener@gmail.com


--00504502cc30089d2a0483186b15--

Re: How to install Apache2 on Windows 7

am 31.03.2010 15:07:55 von john doe

From: Can Le
> Please show me another link or instruction to install Apache 2. I downloaded this file but can't install onto Windows 7 Home edition:

Tried the apache website download page...?

> httpd-2.0.63-win32-src.zip
> I opened above link with winrar , but I couldn't extract files to C drive.

Dunno why you could not, but the 'src' means these are the sources...
Maybe try the Win32 Binary packages for 2.2.15 on the download page.

JD




------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to install Apache2 on Windows 7

am 31.03.2010 20:03:21 von Can Le

Thank John Doe and Mohit Anchlia,

I have It Works! from binary download.

I haven't worked on Apache2 for about a year, I am coming back, and will ha=
ve other questions for your helps again.

Thank You.

Can Le

--- On Wed, 3/31/10, John Doe wrote:

> From: John Doe
> Subject: Re: [users@httpd] How to install Apache2 on Windows 7
> To: users@httpd.apache.org
> Date: Wednesday, March 31, 2010, 8:07 AM
> From: Can Le
> > Please show me another link or instruction to install
> Apache 2. I downloaded this file but can't install onto
> Windows 7 Home edition:
>=20
> Tried the apache website download page...?
>=20
> > httpd-2.0.63-win32-src.zip
> > I opened above link with winrar , but I couldn't
> extract files to C drive.
>=20
> Dunno why you could not, but the 'src' means these are the
> sources...
> Maybe try the Win32 Binary packages for 2.2.15 on the
> download page.
>=20
> JD
>=20
>=20
> =A0 =A0  
>=20
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See for more
> info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   =A0"  =A0from the digest: users-digest-unsubscribe@httpd.apache=
..org
> For additional commands, e-mail: users-help@httpd.apache.org
>=20
> =0A

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org